package STUDENT.TranNamAnh.OOPs.baitapmang.quanlymuonsach.Entity;

public class Books {
	private String bookName, bookAuthor,bookKind;
	private int bookID,bookYear;
	public Books(String bookName, String bookAuthor, String bookKind, int bookID, int bookYear) {
		
		this.bookName = bookName;
		this.bookAuthor = bookAuthor;
		this.bookKind = bookKind;
		this.bookID = bookID;
		this.bookYear = bookYear;
	}
	
	public Books(){
		
	}

	public String getBookName() {
		return bookName;
	}

	public void setBookName(String bookName) {
		this.bookName = bookName;
	}

	public String getBookAuthor() {
		return bookAuthor;
	}

	public void setBookAuthor(String bookAuthor) {
		this.bookAuthor = bookAuthor;
	}

	public String getBookKind() {
		return bookKind;
	}

	public void setBookKind(String bookKind) {
		this.bookKind = bookKind;
	}

	public int getBookID() {
		return bookID;
	}

	public void setBookID(int bookID) {
		this.bookID = bookID;
	}

	public int getBookYear() {
		return bookYear;
	}

	public void setBookYear(int bookYear) {
		this.bookYear = bookYear;
	}
	
	public String toString(){
		String result = "Book info: "
				+ "\n- ID \t\t:" + this.getBookID()
				+ "\n- Name  \t:" + this.getBookName()
				+ "\n- Year  \t:" + this.getBookYear()
				+ "\n- Author \t:" + this.getBookAuthor()
				+ "\n- Kind of Book \t:" + this.getBookKind();
		return result;
	}
}
